package top.yueyazhui.business.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import top.yueyazhui.common.bean.Response;

@FeignClient("storage")
@RequestMapping("/storage")
public interface StorageFeign {

    @PostMapping("/deduct")
    Response deductStorage(@RequestParam("commodityCode") String commodityCode, @RequestParam("count") Integer count);
}
